<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/sys/include/taglib.jsp"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>流水账</title>
<%@ include file="/WEB-INF/sys/include/css.jsp"%>
</head>
<body>
<div id="accountlist"></div>
<%@ include file="/WEB-INF/sys/include/script.jsp"%>
<script type="text/javascript">
var accountlist;
$(function() {
	accountlist = $("#accountlist").ligerGrid(ligerGridParam({
		columns: [
			{display: '操作类型', name: 'type', width: 170, align: 'left', render:{"0":"新增","1":"发放","2":"回收"}},
			{display: '数量', name: 'number', width: 160, align: 'left'},
			{display: '操作时间', name: 'operate_time', width: 160, align: 'left'},
			{display: '负责人', name: 'responsible', width: 160, align: 'left'},
			{display: '备注', name: 'remark', width: 160, align: 'left'},
			{display: '创建人', name: 'createBy', width: 160, align: 'left'},
			{display: '创建时间', name: 'createTime', width: 160, align: 'left', type:"date", format:"yyyy-MM-dd"}
		],
		url: "${path}/repertory/getAccount.json?repertoryid=${repertoryid}",
		pageSizeOptions: [15, 20, 30, 50, 100],
		pageSize: 20,
		toolbar:{
			items:[{line:true},{text:'添加', click: add, icon: 'add'},
					/* {line:true},{text:'删除', click: del, icon: 'delete'} */]
		}
	}));
	
});
function add(){
	artWindow('${path}/repertory/addAccount.do?repertoryid=${repertoryid}', "添加流水账", 600, 400, function(){
 		accountlist.loadData(true);
	});
}
</script>
</body>
</html>